#include <iostream>
#include "Adapter.h"


int main()
{
    auto player1 = AudioPlayerFactory::CreatePlayer("song.mp3");
    player1->Play("song.mp3");

    auto player2 = AudioPlayerFactory::CreatePlayer("sound.wav");
    player2->Play("sound.wav");

    // 错误示例
  /*  auto player3 = AudioPlayerFactory::CreatePlayer("video.avi");
    player3->Play("video.avi");*/
	return 0;
}